package com.qfedu.edu.payservice.service;

import com.qfedu.edu.result.R;
import com.qfedu.edu.vo.PayVo;
import org.jdom.JDOMException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author xiaobobo
 * @title: PayService
 * @projectName seckill-fy-2401-parent
 * @description: TODO
 * @date 2024/11/14  9:17
 */
public interface PayService {

    /**
     * 支付
     *
     * @param payVo
     * @return
     */
    String pay(PayVo payVo) throws Exception;

    /**
     * 微信通知
     * @param req
     * @param resp
     */
    void weixinPayNotify(HttpServletRequest req, HttpServletResponse resp) throws IOException, JDOMException;

    /**
     * 获取订单的支付状态
     * @param orderNumber
     * @return
     */
    Integer getPayStatus(String orderNumber);
}
